package com.io.fallback;

import com.io.client.ProductClient;
import com.io.dto.ProductReq;
import com.io.dto.ProductRes;
import org.springframework.stereotype.Component;

/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
@Component
public class ProductClientFallBack implements ProductClient {
    @Override
    public ProductRes getInfo(ProductReq productReqDTO) {
        ProductRes productResDTO = new ProductRes();
        productResDTO.setResCode(531);
        productResDTO.setResMsg("商品服务挂了...");
        return productResDTO;
    }
}
